/**
 * CheckValues
 * 
 * 30/10/2013
 * 
 * Copyright GPL
 */
package com.jtmproject.struts.tulebox.classes;

/**
 * This class is to do check with numbers
 * @author Javier Tejedor
 */
public class CheckValues {

	/**
	 * this checks if the addition of the values is equalt to resultAddition
	 * @param values
	 * @param resultAddition
	 * @return
	 */
	public boolean checkAdditionArrayValues(int[] values, int resultAddition) {
		int addition = 0;
		
		for(int i = 0; i < values.length; i++){
			addition += values[i];
		}
		
		return addition == resultAddition;
	}
}
